<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
	'Login',
);
?>
<div class="page-header">
<h1>ВОЙТИ</h1>
</div>

<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
    'errorMessageCssClass' => 'alert alert-danger'
)); ?>

    <?php echo $form->error($model,'username'); ?>
    <?php echo $form->error($model,'password'); ?>

    <div class="block">
        <div class="row">

            <?php echo $form->textField($model,'username', array('class'=>'form-control', 'placeholder'=>'Логин')); ?>
        </div>
	</div>

	<div class="block">
        <div class="row">

		    <?php echo $form->passwordField($model,'password', array('class'=>'form-control', 'placeholder'=>'Пароль')); ?>
        </div>
	</div>

	<div class="block">
        <div class="row">
		<?php echo $form->checkBox($model,'rememberMe'); ?>
		<?php echo $form->label($model,'rememberMe'); ?>
        </div>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton('Войти', array('class'=>'btn btn-success')); ?>
	</div>

<?php $this->endWidget(); ?>
</div><!-- form -->
